package com.hanserwei.mydemo.stream;

import java.util.stream.Collectors;
import java.util.stream.Stream;

public class CollectTest4 {

    public static void main(String[] args) {
        Stream<String> stream = Stream.of("令狐冲", "风清扬", "独孤求败", "方证", "东方不败", "冲虚", "向问天", "任我行", "不戒", "东方不败", "冲虚", "向问天");
        String string = stream.collect(Collectors.joining());
        System.out.println(string);
    }
}
